package com.klf.orderinfo.action;

import com.klf.orderinfo.bo.OrderinfoBoImpl;
import com.klf.po.Orderinfo;
import com.opensymphony.xwork2.ActionSupport;
public class OrderinfoAction extends ActionSupport {
	
	/**
	 *  Action
	 */
	private static final long serialVersionUID = 1L;
	
	private Orderinfo orderinfo;
	private OrderinfoBoImpl orderinfoBoImpl;
	
	

	public String save() throws Exception{		
		try {
			orderinfoBoImpl.add(orderinfo);
			return SUCCESS;
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
			return INPUT;
		}
		
	}



	public Orderinfo getOrderinfo() {
		return orderinfo;
	}



	public void setOrderinfo(Orderinfo orderinfo) {
		this.orderinfo = orderinfo;
	}



	public OrderinfoBoImpl getOrderinfoBoImpl() {
		return orderinfoBoImpl;
	}



	public void setOrderinfoBoImpl(OrderinfoBoImpl orderinfoBoImpl) {
		this.orderinfoBoImpl = orderinfoBoImpl;
	}
	
}
